package database.daos;

import database.orm.BeansGenerator;
import database.databasemanager.DataBaseManager;
import java.util.ArrayList;


public abstract class AbstractDAO<T> {

    protected static DataBaseManager dataBaseManager = new DataBaseManager();
    BeansGenerator beansGenerator = new BeansGenerator();

    public abstract void insert(T bean)throws DAOException;

    public abstract void delete(String condition)throws DAOException;

    public abstract void update(T bean, String condition)throws DAOException;

    protected abstract ArrayList<T> searchAll(String condition)throws DAOException;

    protected abstract T search(String condition)throws DAOException;





}
